#define _CRT_SECURE_NO_WARNINGS 1
#include"heap.h"
int main()
{
	int a[] = { 2,5,8,7,4,9,1,0,476,255,756,635 };
	Heap hp;
	HeapInit(&hp);
	for (size_t i = 0; i < sizeof(a) / sizeof(a[0]); i++)
	{
		HeapPush(&hp, a[i]);
	}
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	printf("\n");
	return 0;
}
